home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds207.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  439 b   |  22 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS207 : 矩形
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned char *GDS_append(unsigned char *wp,unsigned int size);
  12.  
  13. void GDS_rectangle(unsigned char *wp,signed int x1,signed int y1,signed int x2,signed int y2) {
  14.  
  15.    wp=GDS_append(wp,10);
  16.    *(unsigned int *)(wp+0)=0x4000+11*32+8;
  17.    *(signed int *)(wp+2)=x1;
  18.    *(signed int *)(wp+4)=y1;
  19.    *(signed int *)(wp+6)=x2;
  20.    *(signed int *)(wp+8)=y2;
  21. }
  22.